  
<template>
	<view class="table-one">
		<view class="table-thead">
			<view class="table-thead__tr">
				<view class="table-thead__th">交易日期</view>
				<view class="table-thead__th">合约名称</view>
				<view class="table-thead__th">类型</view>
				<view class="table-thead__th">成交价</view>
				<view class="table-thead__th">成手数</view>
			</view>
		</view>
		
		<view class="table-tbody">
			<view v-for="(item, key) in list" :key="key" class="table-tbody__tr">
				<view class="table-tbody__th">螺纹1908</view>
				<view class="table-tbody__th">平仓</view>
				<view class="table-tbody__th trend-color">跌</view>
				<view class="table-tbody__th">18元</view>
				<view class="table-tbody__th">500</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			list: {
				type: Array,
				default: () => []
			}
		}
	}
</script>

<style lang="scss">
	.table-one{
		.table-thead{
			width: 100%;
			background: #dce8fd;
			.table-thead__tr{
				display: flex;
				font-size: 30rpx;
				// display: table-row;
			}
			.table-thead__th{
				flex: 1;
				height: 60rpx;
				display: flex;
				align-items: center;
				justify-content: center;
			}
		}
		.table-tbody{
			width: 100%;
			.table-tbody__tr{
				display: flex;
				font-size: 28rpx;
			}
			.table-tbody__th{
				width: 20%;
				height: 60rpx;
				overflow: hidden;
				white-space: nowrap;
				text-overflow: ellipsis;
				text-align: center;
				vertical-align: middle;
			}
		}
		
		// .table-thead{
		// 	width: 100%;
		// 	.table-thead__tr{
		// 		font-size: 32rpx;
		// 		display: table-row;
		// 	}
		// 	.table-thead__th{
		// 		display: table-cell;
		// 	}
		// 	.table-thead__th-column{
		// 		display: inline-block;
		// 		max-width: 100%;
		// 	}
		// }
		// .table-tbody{
		// 	width: 100%;
		// 	.table-tbody__tr{
		// 		font-size: 32rpx;
		// 		display: table-row;
		// 	}
		// 	.table-tbody__td{
		// 		display: table-cell;
		// 		vertical-align: inherit;
		// 	}
		// }
		
		// .row-cell-ellipsis, .row-cell-ellipsis .row-column-title{
		// 	overflow: hidden;
		// 	white-space: nowrap;
		// 	text-overflow: ellipsis;
		// }
		
		// .table-thead__th, .table-thead__th .row-column-title{
		// 	overflow: hidden;
		// 	white-space: nowrap;
		// 	text-overflow: ellipsis;
		// }
	}
</style>